import { v4 } from "uuid";
import { config } from 'dotenv'
import { getWeiBoLoginQrcode, weiboLoginAck, weiboLogin } from "./login/weibo";
import { createSpiderKeywordSearchTopicWeiboTask, listenSpiderWeiBo } from "./spider/weibo";
export async function bootstrap() {
    config()
    const clientId = process.env.APP_ID || v4()
    const reqId = v4()
    // weiboLogin(clientId, reqId)
    // const qrcode = await getWeiBoLoginQrcode(reqId)
    // console.log(qrcode)
    await createSpiderKeywordSearchTopicWeiboTask(`王思聪`, '2024-07-16 00:00:00', 3)
}

bootstrap()
